import React, { useState } from "react";
import LoginForm from "./LoginForm";
import "./index.css";
import RegisterForm from "./RegisterForm";
const Login = () => {
    const [ status, setStatus ] = useState(false);
    return (
        <div className="login">
            <div className="login-form">
                {!status && <LoginForm setStatus={setStatus} />}
                {status && <RegisterForm setStatus={setStatus} />}
            </div>
        </div>
    );
};
export default Login;
